//
//  TKIMFriendBaseListView.h
//  TKIM_首创
//
//  Created by liupm on 15/12/11.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TKIMUITableViewCell.h"
//#import "TKIMUser.h"
#import "TKIMSetting.h"
#import "TKIMSearchBar.h"


@protocol TKIMFriendViewDelegate;

@interface TKIMFriendBaseListView : UIView<UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,UIActionSheetDelegate>
@property(nonatomic,weak) id<TKIMFriendViewDelegate>delegate;
//顶部分组列表
@property(nonatomic,strong) TKIMSettingGroup *setGroup;
//列表
@property(nonatomic,strong) UITableView *tableView;
//数据源
@property(nonatomic,strong) NSMutableArray *dataList;
//当前选中的用户
@property(nonatomic,strong) TKIMUser *selectUser;
//section头标题
@property(nonatomic,strong) NSMutableArray *sectionTitle;
//底部提示标签
@property(nonatomic,strong) UILabel *footLabel;
//搜索栏
@property (nonatomic, strong) TKIMSearchBar  *searchBar;

/**
 *  @author zhengrs, 16-01-11 13:01:27
 *
 *  @brief 隐藏搜索框
 */
-(void)hideSearchBar;

/**
 *  @Author lpm, 15-12-11 16:12:42
 *
 *  @brief  初始化
 *
 *  @param frame
 *  @param delegate
 *
 *  @return
 */
-(instancetype)initWithFrame:(CGRect)frame widthDelegate:(id)delegate;


/**
 *  @Author lpm, 15-10-29 11:10:03
 *
 *  @brief  刷新界面
 */
-(void)reloadData:(NSMutableArray *)dataArray;


@end

@protocol TKIMFriendViewDelegate <NSObject>

/**
 *  @Author lpm, 15-10-29 13:10:46
 *
 *  @brief  跳转到聊天界面
 *
 *  @param user
 */
-(void)toChat:(TKIMUser *)user;


/**
 *  @Author lpm, 15-10-29 13:10:15
 *
 *  @brief  跳转到聊天室列表
 */
-(void)toGroup;


/**
 *  @Author lpm, 15-10-29 13:10:40
 *
 *  @brief  跳转到申请与通知
 */
-(void)toRequest;


/**
 *  @Author lpm, 15-10-29 13:10:40
 *
 *  @brief  跳转到公众号
 */
-(void)toOfficialAccounts;

/**
 * 跳转到群组
 */
-(void)toRoom;

@end